package com.yanqu.road.server.cmd.beautyescort;

import com.yanqu.road.pb.beautyescort.BeautyEscortProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;


@Cmd(code = Protocol.S_BEAUTY_ESCORT_BEAT_BACK_DETAIL_VIEW, desc = "反击详情")
public class BeautyEscortBeatBackDetailCmd extends AbstractCommand {


    long userId;
    long dartId;
    long enemyUserId;
    BeautyEscortProto.BeautyEscortBeatBackDetailReqMsg reqMsg;
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        reqMsg = BeautyEscortProto.BeautyEscortBeatBackDetailReqMsg.parseFrom(packet.getBytes());
        userId = reqMsg.getUserId();
        dartId = reqMsg.getDartId();
        enemyUserId = reqMsg.getEnemyUserId();
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        player.sendPacket(Protocol.C_BEAUTY_ESCORT_BEAT_BACK_DETAIL_VIEW, reqMsg.toBuilder());
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
